package com.navinfo.platform.trip.analysis.flink.config;

import org.apache.flink.api.java.utils.ParameterTool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.net.URISyntaxException;

/**
 * 打分服务的配置
 * @author: web
 * @data:  2020-04-10
 **/
public class ScoreConfig {
    private static final Logger logger = LoggerFactory.getLogger(ScoreConfig.class);
    /**
     * 加载打分服务的配置信息<br/>
     * 并使用命令行中传入的参数覆盖配置文件中的值<br/>
     * 命令行通过--key或-key value传值
     * @param args 命令行参数
     * @return 打分服务的配置
     */
    public static ParameterTool load(String[] args) throws IOException, URISyntaxException {
        return SystemConfig.loadJarPathConfig(args, "config_score.yaml");
    }
}
